package ch.mse.android.starbucksfinder.helper;

import android.content.Intent;
import android.location.Location;
import android.net.Uri;
import android.util.Log;
import ch.mse.android.starbucksfinder.StarbucksLocation;

public class GoogleMapsHelper {
	public static Intent getMapsRouteIntent(Location source, StarbucksLocation dest){
		Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
				   Uri.parse("http://maps.google.com/maps?saddr="+source.getLatitude()+","+source.getLongitude()+"&daddr="+dest.getLatitude()+","+dest.getLongitude()));
		Log.i("STARBUCKS", "http://maps.google.com/maps?saddr="+source.getLatitude()+","+source.getLongitude()+"&daddr="+dest.getLatitude()+","+dest.getLongitude());
		return intent;
	}
}
